Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added nd_service.py and nd_service_instance.py modules to manage ND services #53

Merged
merged 7 commits into from
Oct 31, 2023

Conversation

sajagana
Copy link
Collaborator

Note:

Local service package import is not supported and the module supported on ND version 2.3+

@codecov-commenter
Copy link

codecov-commenter commented Sep 25, 2023

Codecov Report

Attention: 93 lines in your changes are missing coverage. Please review.

Comparison is base (6bba23d) 34.40% compared to head (febb86d) 37.49%.
Report is 9 commits behind head on master.

❗ Current head febb86d differs from pull request most recent head bd1b20d. Consider uploading reports for the commit bd1b20d to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #53      +/-   ##
==========================================
+ Coverage   34.40%   37.49%   +3.09%     
==========================================
  Files          24       28       +4     
  Lines        1994     2163     +169     
  Branches      433      468      +35     
==========================================
+ Hits          686      811     +125     
- Misses       1271     1295      +24     
- Partials       37       57      +20     
Flag Coverage Δ
integration 37.80% <52.70%> (+3.47%) ⬆️
sanity 22.60% <29.55%> (+0.94%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
plugins/module_utils/constants.py 100.00% <100.00%> (ø)
plugins/module_utils/nd_argument_specs.py 100.00% <100.00%> (ø)
plugins/modules/nd_setup.py 95.65% <95.65%> (ø)
plugins/httpapi/nd.py 38.52% <0.00%> (+0.72%) ⬆️
plugins/modules/nd_service.py 48.78% <48.78%> (ø)
plugins/module_utils/nd.py 28.73% <22.50%> (+5.63%) ⬆️
plugins/modules/nd_service_instance.py 38.98% <38.98%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sajagana sajagana force-pushed the 20_nd_app_lifecycle branch 2 times, most recently from de371ef to 8f3cb4e Compare September 26, 2023 05:06
plugins/module_utils/nd.py Outdated Show resolved Hide resolved
plugins/modules/nd_service.py Outdated Show resolved Hide resolved
plugins/modules/nd_service.py Outdated Show resolved Hide resolved
plugins/modules/nd_service.py Outdated Show resolved Hide resolved
plugins/modules/nd_service.py Outdated Show resolved Hide resolved
plugins/modules/nd_service.py Outdated Show resolved Hide resolved
plugins/modules/nd_service.py Outdated Show resolved Hide resolved
plugins/modules/nd_service_instance.py Outdated Show resolved Hide resolved
plugins/modules/nd_service_instance.py Outdated Show resolved Hide resolved
plugins/modules/nd_service_instance.py Outdated Show resolved Hide resolved
plugins/module_utils/nd.py Outdated Show resolved Hide resolved
plugins/modules/nd_service.py Outdated Show resolved Hide resolved
plugins/modules/nd_service_instance.py Show resolved Hide resolved
plugins/modules/nd_service_instance.py Outdated Show resolved Hide resolved
@sajagana sajagana requested a review from akinross October 3, 2023 09:44
Copy link
Collaborator

@akinross akinross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sajagana sajagana closed this Oct 7, 2023
@sajagana sajagana reopened this Oct 10, 2023
plugins/modules/nd_service.py Outdated Show resolved Hide resolved
plugins/modules/nd_service.py Outdated Show resolved Hide resolved
plugins/modules/nd_service.py Outdated Show resolved Hide resolved
plugins/modules/nd_service.py Outdated Show resolved Hide resolved
plugins/modules/nd_service.py Outdated Show resolved Hide resolved
plugins/modules/nd_service.py Outdated Show resolved Hide resolved
tests/integration/targets/nd_service/tasks/main.yml Outdated Show resolved Hide resolved
plugins/modules/nd_service_instance.py Outdated Show resolved Hide resolved
@sajagana sajagana requested review from shrsr, akinross and gmicol October 17, 2023 02:56
Copy link
Collaborator

@akinross akinross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sajagana sajagana force-pushed the 20_nd_app_lifecycle branch from 15919b2 to 6a48e14 Compare October 18, 2023 16:14
Copy link
Collaborator

@shrsr shrsr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@lhercot lhercot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

…e and nd_service_instance modules

and added additional validation checks to nd_service_instance module delete state
@lhercot lhercot force-pushed the 20_nd_app_lifecycle branch from 6a48e14 to b257ba4 Compare October 31, 2023 20:59
@lhercot lhercot merged commit ac90055 into CiscoDevNet:master Oct 31, 2023
17 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add module to manage app lifecycle (install, update, enable and remove)
6 participants